package com.ftg.learn.mysql;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.Month;
import java.util.Date;

/**
 * @author kangjx
 * @createTime 2022/9/14
 */
public class TestData {

    public static void main(String[] args) throws InterruptedException {
        Date date  = new Date();
        System.out.println(date);
        LocalDate localDate = LocalDate.now();
        System.out.println(localDate.toString());
        System.out.println(localDate.getYear());

        LocalDateTime localDateTime = LocalDateTime.now();
        System.out.println(localDateTime.getDayOfWeek());
        System.out.println(localDateTime.getMonth() == Month.SEPTEMBER);
        System.out.println(localDateTime.getMonth().getValue());
        System.out.println(localDateTime.toString());

        System.out.println(System.currentTimeMillis());
    }

}
